package mest.service.Modeling;

import mest.VO.hank.model.provider_fileModel;
import mest.VO.hank.model.save_fileModel;
import mest.VO.hws.save_fileVO;
import mest.entity.provider_file;
import mest.entity.save_file;
import mest.entity.save_type;
import mest.util.ResultObj;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 0:35
 */
public interface IsaveFileService {
    //    1.新增功能
    ResultObj insertsaveFile(save_file sf, String theirDb)   ;

    //   2.基本查询-数量
    int selectCount(String theirDb);

    //   3.基本查询-分页
    List<save_fileVO> findSaveFilePage(int index, int pageSize, String theirDb);


    //1.删除方法
    int delModel(Integer id,String theirDb);
    //2.基本查询-分页-模糊查询-过滤删除订单
    List<save_fileModel> queryAll(Integer index,
                                  Integer pageSize, String record,String theirDb);
    //3.查询总数
    int findCount(String record,String theirDb);
    //4.更新方法
    int updateByOne(save_file record,String theirDb);

    //根据id查询存货档案
    String selectByid(Map<String,Object> map );

}
